package com.example.votemanage.mapper;

import com.example.votemanage.entity.VoteItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.votemanage.entity.VoteOption;
import com.example.votemanage.entity.VoteSubject;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xingcheng
 * @since 2024-06-06
 */
public interface VoteItemMapper extends BaseMapper<VoteItem> {

    @Select("SELECT DISTINCT VU_USER_ID FROM vote_item where vs_id = #{vsId}")
    List<VoteItem> selectByVsId(Integer vsId);
    @Select("SELECT * FROM vote_item where vo_id = #{vo_Id}")
    List<VoteItem> selectByVoId(Integer vo_Id);
}
